package com.admin.model;

import java.util.List;

public class SysBootScreen extends MyDB<SysBootScreen> {
	private static final long serialVersionUID = -397493049042442193L;
	public static final SysBootScreen dao = new SysBootScreen();
	public SysBootScreen() {
		tableName = "sys_boot_screen";
	}
	// 列表
	public List<SysBootScreen> list() {
		List<SysBootScreen> list = dao.find(new String[]{"flag = 1"},new String[]{"show_number"},null);
		return list;
	}
	
	// 通过id得到实体
	public SysBootScreen getSysBootScreenById(String id){
		List<SysBootScreen> list = dao.query(new String[]{"id = '" + id + "'"});
		if(null != list && list.size() > 0){
			return list.get(0);
		}
		return null;
	}
}
